home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3570 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: ifi.uio.no!usenet
  2. From: ludvigp@ifi.uio.no (Ludvig Pedersen)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: doubling pixels horizontally
  5. Date: 20 Feb 1996 20:27:05 GMT
  6. Organization: Dept. of Informatics, University of Oslo, Norway
  7. Message-ID: <1183.6624T1222T2604@ifi.uio.no>
  8. References: <4f4ibc$gl9@news.cs.tu-berlin.de> <591.6610T1165T2102@login.eunet.no><1045.6611T753T2256@vip.cybercity.dk><4faoe1$47@sunsystem5.informatik.tu-muenchen.de><2991.6612T1034T625@vip.cybercity.dk><576.6613T1070T1730@login.eunet.no><1257.6614T57T922@vip.cybercity.dk><1225.6615T1229T800@login.eunet.no><1140.6616T51T1538@vip.cybercity.dk>
  9.         <1982.6617T1096T103@ifi.uio.no> <2175.6620T1429T2950@vip.cybercity.dk>
  10.     <3764.6622T781T478@ifi.uio.no> <4ga5om$qsf@brachio.zrz.TU-Berlin.DE>
  11. NNTP-Posting-Host: gymir.ifi.uio.no
  12. X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
  13.  
  14. >ludvigp@ifi.uio.no (Ludvig Pedersen) writes:
  15. >>Mine current routine is using 48 cycles on 2 passes.
  16. >>        move.l  #160*128/8-1,d7
  17. >>Loop:
  18. >>        move.l  (a0)+,d0               ;Linear Chunky buffer
  19. >>        move.l  (a0)+,d1
  20. >>        <2 passes = 48 cycles>
  21. >>        move.l  d0,(a1)+               ;chipram
  22. >>        move.l  d2,(a1)+
  23. >>        dbra    d7,Loop
  24. >>As you probably have noticed the example is not optimised for memory-access,
  25. >>but the purpose was just to show what I meant by 48 cycles.
  26. >Have you timed the routine and have you compared it to a plain copy?
  27. >My routine takes 48c for conversion too, and I do proper pipelining
  28. >and still it is not chipmem speed.
  29. That means your routine should be just as fast as ours, I guess.
  30.  
  31. Your are not using the CPU and the BLITTER at the same time in chipram are
  32. you??? Because that is very foolish! :) (read: SLOW!)
  33.  
  34. Anyway, to make sure I timed it.
  35.  
  36. Using a PAL lowres screen with 256 colors, all interrupts off.
  37.  
  38. c2p:  Used 74 rasterlines on a 160x128 screen
  39. Copy: Used 73 rasterlines.
  40.  
  41. I consider that as pretty equal.
  42.  
  43. <sb>Ludde - Amiga Demo Coder
  44. <sb>Virtual Reality & Official Be developer
  45. <sb>ludvigp@ifi.uio.no
  46.  
  47.